<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:73:"D:\PHPTutorial\WWW\demo\public/../application/admin\view\login\Login.html";i:1542178343;}*/ ?>
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge"> 
<meta name="viewport" content="width=device-width, initial-scale=1"> 
<title>登陆</title>
<link rel="stylesheet" type="text/css" href="/static/login/css/normalize.css" />
<link rel="stylesheet" type="text/css" href="/static/login/css/demo.css" />
<!--必要样式-->
<link rel="stylesheet" type="text/css" href="/static/login/css/component.css" />
<script src="/static/login/jquery.js"></script>
<script src="/static/login/js/html5.js"></script>
<script type="text/javascript" src="/static/index/layer/layer.js"></script>
</head>
<body>
		<div class="container demo-1">
			<div class="content">
				<div id="large-header" class="large-header">
					<canvas id="demo-canvas"></canvas>
					<div class="logo_box">
						<h3>welcome</h3>
						<div action="#" name="f" method="post">
								<input  name="login_number" class="text" style="color: #FFFFFF !important;display: none" type="text" placeholder="请输入账户">
								<input name="password" class="text" style="color: #FFFFFF !important;display: none"value="" type="password" placeholder="请输入密码">
							<div class="input_outer">
								<span class="u_user"></span>
								<input  name="login_number" id="login_number"class="text" style="color: #FFFFFF !important" type="text" placeholder="请输入账户">
							</div>
							<div class="input_outer">
								<span class="us_uer"></span>
								<input name="password" id="password" class="text" style="color: #FFFFFF !important; position:absolute; z-index:100;"value="" type="password" placeholder="请输入密码">
							</div>
							<div class="mb2"><a class="act-but submit" href="javascript:;" style="color: #FFFFFF">登录</a></div>
						</div>
					</div>
				</div>
			</div>
		</div><!-- /container -->
		<script src="/static/login/js/TweenLite.min.js"></script>
		<script src="/static/login/js/EasePack.min.js"></script>
		<script src="/static/login/js/rAF.js"></script>
		<script src="/static/login/js/demo-1.js"></script>
		<div style="text-align:center;">
</div>
	</body>
<script>

	$(".mb2").click(function checkSubmitMobil() {
        var login_number = $('#login_number').val();
        var password = $('#password').val();
        if (login_number == "") {
            layer.msg('账户名未填写');
            return false;
        }
        if (password == "") {
            layer.msg('密码未填写');
            return false;
        }
        if (login_number != "" && password != "") {
            $.ajax({
                url: '/admin/login/loginIn',
                dataType: 'json',
                type: 'post',
                // async:false,
                data: {'login_number': login_number, 'password': password},
                success: function (data){
                    console.log(data);
                    if(data.code == 200){
			// console.log(data);
                         //layer.msg(data);
                      	window.location.href='/admin/Menu/index';
                    }else{
                       layer.msg(data.msg);
                       return false;
                    }
                }
            });
        }
    });

	
</script>
</html>
